package com.jelly.web.modules.basics.sensitiveWord.service;

import com.jelly.web.modules.basics.sensitiveWord.domain.SensitiveWord;

import java.util.List;
import java.util.Set;

/**
 * @创建人 ql
 * @创建时间 2018-10-09 17:11
 * @项目名称 jelly
 * @功能描述: 敏感词接口
 **/
public interface ISensitiveWordService {


    /**
     * 获取所有的敏感词
     * @return
     */
    Set<String> getSensitiveWordAll();

    /**
     * 条件查询敏感词
     * @param sensitiveWord
     * @return
     */
    List<SensitiveWord> getSensitiveWordAll(SensitiveWord sensitiveWord);

    /**
     * 主键查询敏感词
     * @param id
     * @return
     */
    SensitiveWord getSensitiveWordId(String id);

    /**
     * 新增敏感词
     * @param sensitiveWord
     * @return
     */
    boolean addSensitiveWord(SensitiveWord sensitiveWord);


    /**
     * 主键修改敏感词
     * @param sensitiveWord
     * @return
     */
    boolean updatSensitiveWord(SensitiveWord sensitiveWord);


    /**
     * 删除敏感词
     * @param id
     * @return
     */
    boolean delectSensitiveWord(String id);

}
